package me.caofeng.pojo;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.pojo
 * @Description: 商品明细
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-29 12:12
 * @Version: V1.0
 */
public class OrderItem extends Pojo{
    /**
     * 交易流水号
     */
    private String orderId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 商品编号
     */
    private int productId;

    /**
     * 商品名字
     */
    private String productName;

    /**
     * 商品主图
     */
    private String productImage;

    /**
     * 下单时的商品价格
     */
    private int productPrice;

    /**
     *  购买数量
     */
    private int quantity;

    /**
     * 总价格
     */
    private int totalPrice;

    public OrderItem() {
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public int getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(int productPrice) {
        this.productPrice = productPrice;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public int getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(int totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "orderId=" + orderId +
                ", userId='" + userId + '\'' +
                ", productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productImage='" + productImage + '\'' +
                ", id=" + id +
                ", createTime=" + createTime +
                ", productPrice=" + productPrice +
                ", updateTime=" + updateTime +
                ", isDelete=" + isDelete +
                ", quantity=" + quantity +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
